/**
 * Perform the element default action.
 *
 * @param {JSEvent} event the event that triggered the action
 *
 * @properties={typeid:24,uuid:"9467B17B-CB19-4357-922E-9A9AF5C8596D"}
 */
function eligeRemito(event) {
	var $rcd = foundset.getRecord(foundset.getSelectedIndex())
	forms.recepciones_int_carga_ind.cargaDatos($rcd, $rcd.rem_cabecera_to_rem_detalle_ind)
	 var $win = application.getWindow('BUSCAREM')
	 $win.hide()
	 $win.destroy()
}

/**
 * Callback method for when form is shown.
 *
 * @param {Boolean} firstShow form is shown first time after load
 * @param {JSEvent} event the event that triggered the action
 *
 * @properties={typeid:24,uuid:"501067F1-97C4-4A66-A352-9001906C4782"}
 * @AllowToRunInFind
 */
function onShow(firstShow, event) {
	 controller.find()
	 
	 rem_estado 		= globals.zconf_rem_ingresado
	 tipo				= 3 //globals.zconf_
	 deposito_destino 	= globals.gdeposito_ind
	 
	 if (controller.search() == 0)
	 {
		 var $win = application.getWindow('BUSCAREM')
		 $win.hide()
		 $win.destroy()
		 globals.DIALOGS.showInfoDialog('Aviso','No hay remitos internos cargados','OK') //23/01/2014
	 }
}
